package com.training.food.pojo;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Getter
@Setter
@Data
@NoArgsConstructor
@EqualsAndHashCode
@Entity
@Table( name ="wsmarket" )
public class WSmarket implements Serializable {
    @Id
    private Integer WSmarketId;
    @Column(name = "username")
    private String username;
    @Column(name="typeDescription")
    private String typeDescription;
    @Column(name = "inputTime")
    private Date inputTime;
    @Column(name="number")
    private double number;

    @Column(name="state")
    private String state;

    public WSmarket(Integer WSmarketId, String typeDescription) {
        this.WSmarketId = WSmarketId;
        this.typeDescription = typeDescription;
    }

    public WSmarket(String username, String typeDescription, Date inputTime, double number, String state) {
        this.username = username;
        this.typeDescription = typeDescription;
        this.inputTime = inputTime;
        this.number = number;

        this.state = state;
    }
}
